package de.koller.gravity.mech.particle.environment;

import de.koller.gravity.mech.particle.Particle;
import de.koller.gravity.mech.particle.ParticleEngine;
import de.koller.oceanFramework.math.RVec3d;

public class IndependentMovement implements IParticleEnvironment {
	
	public final RVec3d gravity = new RVec3d();
	
	@Override
	public void stepParticle( Particle p, ParticleEngine engine ) {
		p.velocity.add( gravity );	
		p.position.add( p.velocity );
	}
	
}
